
#include<string>
#include"demo11.h"
using namespace std;
void test1::input(double num) 
{
    number=num;
}
double test1::output() const
{
    return number;
}
test1 *test1::plus(test1 *const &test_1)
{
    double temp=number;
    number+=test_1->number;
    test_1->number=temp;
    return this;
}
test1 *test1::make_price(double (*p)[])
{
    for(int i=0;i<10;i++)
    {
        this->each_price[i]=(*p)[i];
    }
    return this;   
}
double (*test1::check_price())[]
    {
        cout<<"hello world"<<endl;
        return &each_price;
    }
test1::test1(double a,double (*p)[])
{
    number=a;
    for(int i=0;i<10;i++)
    {
        (this->each_price)[i]=(*p)[i];
    }  
}

